import java.io.File;
import java.lang.reflect.Field;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-04-22
 * Time: 21:39
 */
public class rething {
    public static void main(String[] args) {
        File field=new File("C:\\Users\\22652\\Desktop\\程序\\iron\\2.txt");
        System.out.println(field);
        System.out.println(field.isFile());
        File file=new File("C:\\Users\\22652\\Desktop\\程序\\iron\\Java_4_22\\src\\2.txt");
        System.out.println(field.renameTo(file));
        //前面存在，后面不会存在
    }
}
